﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.From {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_DmsEnvironment", DisableSyncStructure = true)]
	public partial class TDmsEnvironment {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,1)")]
		public decimal? AmbientHumidity { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,1)")]
		public decimal? AmbientTemperature { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BatteryVolt { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,1)")]
		public decimal? Displace { get; set; }

		[JsonProperty]
		public int? FireAlarm { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Reserved1 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Reserved2 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Reserved3 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Reserved4 { get; set; }

		[JsonProperty]
		public int? SmogAlarm { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp1 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp2 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp3 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp4 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp5 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp6 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp7 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp8 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Temp9 { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Volt1 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Volt2 { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? WaterLevel { get; set; }

	}

}
